home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Communications Toolbox / CommToolbox 1.1 / Interfaces / CIncludes / FileTransferTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-21  |  1.5 KB  |  88 lines  |  [TEXT/MPS ]

  1. /************************************************************
  2.     FileTransferTools.h
  3.     C Interface to the Macintosh Libraries
  4.  
  5.         Copyright Apple Computer, Inc. 1988-1991
  6.         All rights reserved
  7. ************************************************************/
  8.  
  9.  
  10. #ifndef __FILETRANSFERTOOLS__
  11. #define __FILETRANSFERTOOLS__
  12.  
  13. #ifndef __DIALOGS__
  14. #include <Dialogs.h>
  15. #endif
  16.  
  17. #ifndef __FILETRANSFERS__
  18. #include <FileTransfers.h>
  19. #endif
  20.  
  21.  
  22. enum {
  23.  
  24.  
  25. /* Control */
  26.  ftInitMsg = 0,
  27.  ftDisposeMsg = 1,
  28.  ftSuspendMsg = 2,
  29.  ftResumeMsg = 3,
  30.  ftMenuMsg = 4,
  31.  ftEventMsg = 5,
  32.  ftActivateMsg = 6,
  33.  ftDeactivateMsg = 7,
  34.  ftGetErrorStringMsg = 8,
  35.  
  36.  ftAbortMsg = 52,
  37.  
  38.  ftStartMsg = 100,
  39.  ftExecMsg = 102,
  40.  ftSendMsg = 103,
  41.  ftReceiveMsg = 104,
  42.  
  43. /*Setup */
  44.  ftSpreflightMsg = 0,
  45.  ftSsetupMsg = 1,
  46.  ftSitemMsg = 2,
  47.  ftSfilterMsg = 3,
  48.  ftScleanupMsg = 4,
  49.  
  50. /* validate */
  51.  ftValidateMsg = 0
  52. };
  53. enum {
  54.  ftDefaultMsg = 1,
  55.  
  56. /* scripting */
  57.  ftMgetMsg = 0,
  58.  ftMsetMsg = 1,
  59.  
  60. /* localization */
  61.  ftL2English = 0,
  62.  ftL2Intl = 1
  63.  
  64. /* DEFs */
  65.  
  66. #define        fdefType        'fdef'
  67. #define        fsetType        'fset'
  68. #define        fvalType        'fval'
  69. #define        flocType        'floc'
  70. #define        fscrType        'fscr'
  71.  
  72. #define        fbndType        'fbnd'
  73. #define        fverType        'vers'
  74. };
  75.  
  76. struct FTSetupStruct {
  77.     DialogPtr    theDialog;            /* the dialog form the application */
  78.     short        count;                /* first appended item */
  79.     Ptr            theConfig;            /* the config record to setup */
  80.     short        procID;                /* procID of the tool */
  81. };
  82.  
  83. typedef struct FTSetupStruct FTSetupStruct;
  84. typedef FTSetupStruct *FTSetupPtr;    
  85.  
  86.  
  87.     
  88. #endif